package apiooday01;

public class GetterSetterDemo {
    private int a=2;
    public GetterSetterDemo(int a){
        this.a=a;
    }
    public static void main(String[] args) {
        point p =new point(100,200);
        point p1 =new point(100,200);
        System.out.println(p);
        System.out.println(p.equals(p1));
        GetterSetterDemo g= new GetterSetterDemo(2);
        System.out.println(g);
        StringBuilder s= new StringBuilder();
        StringBuilder s1= new StringBuilder();
        System.out.println(s==s1);
        System.out.println(s.equals(s1));
       // System.out.println(s.toString());

    }
}
